<!--
 * @Description:
 * @Author: dh
 * @Date: 2022-01-21 13:41:19
 * @LastEditors: dh
 * @LastEditTime: 2025-10-22 13:17:28
-->
<template>
	<div>
		<Child />
	</div>
</template>

<script setup lang="ts">
import { onMounted, getCurrentInstance } from 'vue'
import Child from './chiild.vue'

const instance = getCurrentInstance()
onMounted(() => {
	instance?.proxy?.$bus.on('msg', function () {
		alert('mitt通讯')
	})
})
</script>
